import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../AppConfig/Config.dart';

class DeviceInformation extends StatefulWidget {
  const DeviceInformation({super.key});

  @override
  State<DeviceInformation> createState() => _DeviceInformationState();
}

class _DeviceInformationState extends State<DeviceInformation> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text("设备信息",style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("设备信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用于保障账户、交易安全、完成安全风控、需要调取您相关的设备信息",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户主动授权获取",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
